FLAGS=-lncurses
OBJ=output.o map.o input.o player.o movable.o monster.o monstertable.o
HEADS= creature.h

all: entropy

entropy: main.cpp output.o input.o input.o player.o movable.o monster.o creature.h
	g++ -o entropy main.cpp $(OBJ) $(HEADS) $(FLAGS)

output.o: map.o output.cpp output.h
	g++ -c output.cpp

input.o: map.o input.cpp input.h
	g++ -c input.cpp

map.o: map.cpp map.h monster.o
	g++ -c map.cpp

creature.h: movable.o

player.o: player.cpp player.h creature.h
	g++ -c player.cpp

monster.o: monster.cpp monster.h creature.h monstertable.o

monstertable.o: monstertable.cpp monstertable.h
	g++ -c monstertable.cpp

movable.o: movable.cpp movable.h
	g++ -c movable.cpp

clean:
	rm entropy $(OBJ)
